package com.mapper;

import com.pojo.Pay;
import com.vo.LineVo;
import com.vo.PayVo;

import java.util.List;

public interface PayMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Pay record);

    int insertSelective(Pay record);

    Pay selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Pay record);

    int updateByPrimaryKey(Pay record);

    /***
     * 业主根据业主编号查询pay
     * @param ownerid
     * @return
     */
    public List<Pay> selectPayByOwnerid(Integer ownerid);

    /***
     * 物业查询所有的缴费记录
     * @return
     */
    public List<Pay> selectAllPay(PayVo payVo);

    public int addPay(PayVo payVo);

    /***
     * 将状态改为完成
     * @param payVo
     * @return
     */
    public int updatePay(PayVo payVo);

public List<Pay> ownerSelectRecording(PayVo payVo);
    /**
     * 查询所有的金额
     */

    public List<LineVo> selectallpay();
}